|
DX11 COPY APPEND CONSUME BUFFER ELEMENT COUNT TO BUFFER
Unfortunately it isn't possible to access the internal element count of an append/consume buffer directly from your shaders.
It can however be copied directly into GPU memory such as a buffer or constant buffer, thus bypassing the stalling operation
performed by DX11 GET APPEND CONSUME BUFFER ELEMENT COUNT, where the element count is read back to the CPU.
Therefore it is recommended to use this function instead if you just mean to write the count directly to a buffer for reading
by your shader programs.
Note: this function operates on array buffers, structured buffers and byte address buffers. Use DX11 COPY APPEND CONSUME BUFFER ELEMENT COUNT TO CBUFFER for use with constant buffers instead.
DX11 COPY APPEND CONSUME BUFFER ELEMENT COUNT TO BUFFER appendConsumeBuffer, targetBuffer, byteOffset
appendConsumeBuffer Dword The append/consume buffer to copy the current internal element count of.
targetBuffer Dword An array-, structured- or byte address buffer to copy the append/consume buffer's internal element count to.
byteOffset Dword A raw byte offset to where in the target buffer to write the element count to.
This function does not return a value.
DIRECTCOMPUTE Functions Menu
DX11 Function Categories
|